package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.Member;
import edu.suda.xsap.entity.MemberCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberMapper {
    Integer save(Member member);
    void update(Member member);
    void delete(Integer id);
    Member findById(Integer id);
    List<Member> findAll();
    Integer findCount();
    List<Member> findByLimit(@Param("limit") Integer limit , @Param("offset") Integer offset);

    void changeStatus(Integer id);
    Integer findStatus(Integer id);


}
